/**
 * Copyright (C) Skywares Information Technology, LTD. 
 * All Rights Reserved.
 *
 * MiaoshaUserDao.java created on 2020年2月2日 下午12:59:02 by Lyon Lu 
 */
package com.mvc.server.miaosha.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.mvc.server.miaosha.pojo.MiaoshaUser;

/**
 * <pre>
 * Description:
 * 
 * @author Lyon Lu
 * @date 2020年2月2日 下午12:59:02
 *
 * </pre>
 */
@Mapper
public interface MiaoshaUserDao {
	
	@Select("select * from miaosha_user where id = #{id}")
	MiaoshaUser getById(@Param("id")long id);

	@Update("update miaosha_user set password = #{password} where id = #{id}")
	void update(MiaoshaUser toBeUpdate);

}
